<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>会议过程管理</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
  <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
</head>
<body>
	
	<div class="layui-fluid">
		<div class="layui-row layui-col-space15">
			<div class="layui-col-md12">
				<div class="layui-card">
					<div class="layui-card-header">会议议程</div>
					<div class="layui-card-body">
						<form class="layui-form" action=""
							lay-filter="component-form-group">
							<div class="layui-form-item layui-form-text">
								<div class="layui-input-block">
									<textarea id="agendaContent" name=""
										agendaContent""
										placeholder="请输入议程容"
										class="layui-textarea"></textarea>
								</div>
							</div>
							<div class="layui-form-item layui-layout-admin">
								<div class="layui-input-block">
									<button type="button" class="layui-btn" id="agenda-upload">
										<i class="layui-icon"></i>上传议程文件
									</button>
									<button class="layui-btn layui-btn-warm">预览议程</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
			<div class="layui-col-md12">
				<div class="layui-card">
					<div class="layui-card-header">导师遴选结果</div>
          <div class="layui-card-body">
          	<table class="layui-hide" id="ttrProcMng-table" lay-filter="ttrProcMng-table"></table>
          </div>
				</div>
			</div>
		</div>
	</div>
	
	<script src="../../../layuiadmin/layui/layui.js"></script> 
	<script>
  layui.config({
    base: '../../../layuiadmin/' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index', 'form', 'table', 'upload', 'layedit'], function(){
    var $ = layui.$
    ,table = layui.table
    ,admin = layui.admin
    ,layer = layui.layer
    ,form = layui.form
    ,upload = layui.upload
    ,layedit = layui.layedit;
    
    layedit.build('agendaContent'); //建立编辑器
    
    upload.render({
        elem: '#agenda-upload'
        , url: '/upload/'
        , done: function (res) {
            console.log(res)
        }
    });
    
    form.render(null, 'component-form-group');
    
	  table.render({
	    elem: '#ttrProcMng-table'
	    ,url: layui.setter.base + 'json/table/user.js'
	    ,cellMinWidth: 80
	    ,id: 'ID'
	    ,cols: [[
	      {type:'checkbox', fixed: 'left'}
	      ,{field:'username', title: '姓名'}
	      ,{field:'sex', title: '学院', sort: true}
        ,{field:'sign', title: '职称'}
        ,{field:'experience', title: '职务', sort: true}
        ,{field:'experience', title: '成绩', edit: 'text', sort: true}
	    ]]
	    ,page: true
	  });
	  
    /* 监听提交 */
    form.on('submit(component-form-demo1)', function(data){
      parent.layer.alert(JSON.stringify(data.field), {
        title: '最终的提交信息'
      })
      return false;
    });
  });
	</script> 
</body>
</html>